<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item  layui-row layui-col-xs12">
            <label class="layui-form-label required">上级菜单</label>
            <div class="layui-input-block">
                <select name="pid">
                    {foreach $pidMenuList as $vo}
                    <option value="{$vo.id}" {if $id==$vo.id}selected=""{/if}>{$vo.title|raw}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">菜单名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" lay-reqtext="请输入菜单名称" placeholder="请输入菜单名称" value="">
                <tip>填写菜单名称。</tip>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">菜单链接</label>
            <div class="layui-input-block">
                <input type="text" id="href" name="href" class="layui-input" lay-reqtext="请输入菜单链接" placeholder="请输入菜单链接" value="">
                <tip>填写菜单链接。</tip>
            </div>
        </div>
        <div class="layui-form-item  layui-row layui-col-xs12">
            <label class="layui-form-label required">模型</label>
            <div class="layui-input-block">
                <select name="table" class="layui-select" lay-search>
                    <option value="">请选择</option>
                    {foreach $getTableList as $vo}
                    <option value="{$vo.table}">{$vo.name|raw}</option>
                    {/foreach}
                </select>
            </div>
        </div>
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">所属应用</label>-->
<!--            <div class="layui-input-block">-->
<!--                {foreach $app as $key=>$value}-->
<!--                {if isset($row.app)&&$row.app==$value['identification']}-->
<!--                <input name="app" value="{$value['identification']}" type="radio" title="{$value['name']}" checked="">-->
<!--                {else}-->
<!--                <input name="app" value="{$value['identification']}" type="radio" title="{$value['name']}">-->
<!--                {/if}-->
<!--                {/foreach}-->
<!--                <tip>填写所属应用</tip>-->
<!--            </div>-->
<!--        </div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">选择图标</label>
            <div class="layui-input-block">
                <input type="text" id="icon" name="icon" lay-filter="icon" class="hide" value="fa fa-list">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">target属性</label>
            <div class="layui-input-block">
                {foreach ['_self','_blank','_parent','_top'] as $vo}
                <input type="radio" name="target" value="{$vo}" title="{$vo}" {if $vo=='_self'}checked=""{/if}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">菜单排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" lay-reqtext="菜单排序不能为空" placeholder="请输入菜单排序" value="0" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">默认tabbar</label>
            <div class="layui-input-block">
                <input type="checkbox" name="default_tablebar[]" title="添加" value="add" checked>
                <input type="checkbox" name="default_tablebar[]" title="删除" value="delete" checked>
                <input type="checkbox" name="default_tablebar[]" title="导出" value="export">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">添加tabbar</label>
            <div class="layui-input-block">
                <textarea name="tablebar" class="layui-textarea" placeholder="请输入新增tablebar"></textarea>
                <tip>例：desc:测试用,href:system.ces/updates,auth:updates,type:a;desc:测试按钮,href:system.ces/updatess,auth:updatess,type:button,data-full:true</tip>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">默认右侧按钮</label>
            <div class="layui-input-block">
                <input type="checkbox" name="default_right_button[]" title="详情" value="details">
                <input type="checkbox" name="default_right_button[]" title="编辑" value="edit" checked>
                <input type="checkbox" name="default_right_button[]" title="删除" value="delete" checked>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">右侧按钮</label>
            <div class="layui-input-block">
                <textarea name="right_button" class="layui-textarea" placeholder="请输入右侧按钮"></textarea>
                <tip>例：(中文显示)desc:测试用,(跳转地址)href:system.ces/updates,(注入权限)auth:updates,(打开类型)type:a,(展示条件)condition:d.status==1;desc:测试按钮,href:system.ces/updatess,auth:updatess,type:button,condition:d.status==1,data-full:true</tip>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注信息</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea" placeholder="请输入备注信息"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">开启crud</label>
            <div class="layui-input-block">
                <input type="checkbox" name="curd" checked lay-skin="switch" lay-text="开启|禁用">
                <!--<tip>填写排序。</tip>-->
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">表格字符换行</label>
            <div class="layui-input-block">
                <input type="checkbox" name="feed" checked lay-skin="switch" lay-text="开启|禁用">
                <!--<tip>填写排序。</tip>-->
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>